package projet.test;

import static org.junit.Assert.assertEquals;

import org.junit.After;
import org.junit.BeforeClass;
import org.junit.Test;

import projet.item.Photo;

public class _TEST_Photo {
	static Photo photo;
	
	@BeforeClass
	public static void set()
	{
		photo = new Photo (1, "theTitle", "comment", "photographe", "datex","path");
	}
	
	@After
	public void tearDown() throws Exception {

	}
	
	/**
	 * Checks that a User object is not null with constructor signature public CD (1, "theTitle", "comment","theArtist", 9);
	 */
	@Test
	public void constructor() {
		assertEquals(photo.getId(), 1);
		assertEquals(photo.getTitle(), "theTitle");
		assertEquals(photo.getComment(), "comment");
		assertEquals(photo.getPhotographe(), "photographe");
		assertEquals(photo.getPath(), "path");
		assertEquals(photo.getDate(), "datex");
		
	}
}
